package com.otupia.acs.session.stateless;

import java.util.List;

import org.apache.log4j.Logger;

import com.otupia.acs.entity.FriendInfo;
import com.otupia.acs.entity.UserInfo;
import com.otupia.acs.spring.api.FriendManager;



public class FriendManagerBeanSpring implements FriendManager
{
	
	private static Logger logger = Logger.getLogger(FriendManagerBeanSpring.class);
	
	public void addFriend(long userId,long friendId)
	{
		logger.info("calling function FriendManagerBean"
				+ "#addFriend with arguments : [" + userId + friendId + "]");
		
		FriendInfo friendInfo = new FriendInfo();
		friendInfo.setUserId(userId);
		friendInfo.setFriendId(friendId);
		
		logger.info("exiting function FriendManagerBean"
				+ "#addFriend with result : [" + friendInfo + "]");
	}
	
	public void deleteFriend(long userId,long friendId)
	{
		logger.info("calling function FriendManagerBean"
				+ "#deleteFriend with arguments : [" + userId + friendId + "]");
		
	}
	
	public List<UserInfo> selectFriend(long userId)
	{
		logger.info("calling function FriendManagerBean"
				+ "#selectFriend with arguments : [" + userId + "]");
		
		return null;	
	}
}
